﻿using System;

namespace ZYCommon
{
    

    public class Format_Date : StringDataFormatItem
    {
        public override bool Test(string strValue)
        {
            bool flag=false;
            try
            {
                Convert.ToDateTime(strValue);
                flag = true;
            }
            catch
            {
            }
            return flag;
        }

        public override string DisplayName
        {
            get
            {
                return "必须为表示时间";
            }
        }

        public override string Name
        {
            get
            {
                return "date";
            }
        }
    }
}

